package top.jamsee.service.impl;

import org.springframework.stereotype.Service;
import top.jamsee.dao.LoginUserDao;
import top.jamsee.entity.User;
import top.jamsee.service.UserService;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private LoginUserDao dao;

    @Override
    public int selectUser(User u) {
        int ifExist=dao.selectUser(u);//得到查询条数
        if (ifExist==1){
            return 1;

        }else {
            return 0;
        }




    }
}
